package com.bank.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BillTransaction {
    private Long transactionId;
    private Long accountId;
    private Integer transactionType;
    private BigDecimal amount;
    private BigDecimal balance;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime transactionTime;

    private String remark;

    private Long relatedAccount;
}
